package logic;

public class ProbMat implements Comparable<ProbMat> {
	private Integer[][] mat;
	private int prob;
	public ProbMat(Integer[][] mat, int prob)
	{
		this.setMat(mat);
		this.setProb(prob);
	}
	public int getProb() {
		return prob;
	}
	public void setProb(int prob) {
		this.prob = prob;
	}
	public Integer[][] getMat() {
		return mat;
	}
	public void setMat(Integer[][] mat) {
		this.mat = mat;
	}
	@Override
	public int compareTo(ProbMat p) {
		if(this.prob==p.getProb())
			return 0;
		else if(this.prob>p.getProb())
			return 1;
		else return -1;
	}
	
}
